<html xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      py:strip="">
<py:def function="header">
    <div class="grid_12" id="navbar" style="background-color:yellow">
        <ul>  
            <li><a href="${tg.url('/dashboard')}" class="${('', 'active')[defined('page') and page==page=='dashboard']}">Dashboard</a></li>
            <li><a href="${tg.url('/record')}" class="${('', 'active')[defined('page') and page==page=='record']}">Records</a></li>
            <li><a href="${tg.url('/party')}" class="${('', 'active')[defined('page') and page==page=='party']}">Parties</a></li>
            <li><a href="${tg.url('/profile')}" class="${('', 'active')[defined('page') and page==page=='profile']}">Profile</a></li>
            <li><a href="${tg.url('/help')}" class="${('', 'active')[defined('page') and page==page=='help']}">Help</a></li>
            <span py:if="tg.auth_stack_enabled" py:strip="True">
                <li py:if="not request.identity" id="login" class="loginlogout"><a href="${tg.url('/login')}">Login</a></li>
                <li py:if="request.identity" id="login" class="loginlogout"><a href="${tg.url('/logout_handler')}">Logout</a></li>
                <li py:if="request.identity" id="admin" class="loginlogout"><a href="${tg.url('/admin')}">Admin</a></li>
            </span>
        </ul>  
    </div>
</py:def>
</html>
